package com.zm.demo.sc.mybatisplus.main;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.zm.demo.sc.mybatisplus.mapper")
@ComponentScan(basePackages = {"com.zm.demo.sc.mybatisplus"})
//@ImportResource("classpath:spring/db.xml")
@RestController
@Configuration("redisConfig1")
public class MybatisplusApplication {

    public static void main(String[]args){
        SpringApplication.run(MybatisplusApplication.class, args);
    }

//    @RequestMapping("/health")
//    public String health(){
////        return IdUtil;
//    }
}
